D:\JinShengYu\Jdk1.8\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\JinShengYu\goodsorder\orderDoctor -DarchetypeCatalog=internal -Dmaven.home=D:\JinShengYu\Mevan\apache-maven-3.5.2 -Dclassworlds.conf=D:\JinShengYu\Mevan\apache-maven-3.5.2\bin\m2.conf "-javaagent:D:\JinShengYu\IDEA\IntelliJ IDEA 2018.2.2\lib\idea_rt.jar=51595:D:\JinShengYu\IDEA\IntelliJ IDEA 2018.2.2\bin" -Dfile.encoding=UTF-8 -classpath D:\JinShengYu\Mevan\apache-maven-3.5.2\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.2.2 -s D:\JinShengYu\Mevan\apache-maven-3.5.2\conf\settings.xml clean

D:\JinShengYu\Jdk1.8\bin\java.exe -Dmaven.multiModuleProjectDirectory=D:\JinShengYu\goodsorder\orderDoctor -DarchetypeCatalog=internal -Dmaven.home=D:\JinShengYu\Mevan\apache-maven-3.5.2 -Dclassworlds.conf=D:\JinShengYu\Mevan\apache-maven-3.5.2\bin\m2.conf "-javaagent:D:\JinShengYu\IDEA\IntelliJ IDEA 2018.2.2\lib\idea_rt.jar=51618:D:\JinShengYu\IDEA\IntelliJ IDEA 2018.2.2\bin" -Dfile.encoding=UTF-8 -classpath D:\JinShengYu\Mevan\apache-maven-3.5.2\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.2.2 -s D:\JinShengYu\Mevan\apache-maven-3.5.2\conf\settings.xml package

ren D:\JinShengYu\goodsorder\orderDoctor\target\goodsorder-4.0.jar goodsorder-pro.jar

set jarFileName=%Date:~5,2%-%Date:~8,2%-%Time:~0,2%-%Time:~3,2%-%Time:~6,2%

ssh root@47.242.144.208 "mv /home/goodsorder/goodsorder-pro.jar /home/goodsorder/goodsorder-%jarFileName%.jar; cp /home/goodsorder/goodsorder.log /home/goodsorder/goodsorder-%jarFileName%.log"

scp target\goodsorder-pro.jar root@47.242.144.208:/home/goodsorder

ssh root@47.242.144.208 "cd /home/goodsorder/; chmod +755 goodsorder-pro.jar; ls"